﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="F5BigIpV11.cs" company="">
//   
// </copyright>
// <summary>
//   The f 5 big ip v 11.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace F5.BigIp.LocalTrafficManager.Proxy.V11
{
    using F5.BigIp.LocalTrafficManager.Interfaces;
    using F5.BigIp.LocalTrafficManager.Proxy.V11.SystemInfo;

    /// <summary>The F5 BIG-IP V11.</summary>
    public class LoadBalancerService : ILoadBalancerService
    {
        #region Public Methods and Operators

        /// <summary>The get version.</summary>
        /// <param name="loadBalancer">The load balancer.</param>
        /// <returns>The <see cref="string"/>.</returns>
        public string GetVersion(LoadBalancer loadBalancer)
        {
            SystemSystemInfoPortType systemInfoService = ServiceFactory.CreateSystemInfoService(loadBalancer);

            get_versionResponse response = systemInfoService.get_version(new get_versionRequest());

            string version = response.@return;

            return version;
        }

        #endregion
    }
}